package org.pattern.builder.model;

/**
 * Created by IntelliJ IDEA.
 * User: Administrator
 * Date: 16-11-2010
 * Time: 22:22:20
 * To change this template use File | Settings | File Templates.
 */
public class XMLPizza extends Pizza{
    private String xml;

    public String toXML(){
        StringBuilder sb = new StringBuilder();

        sb.append("<pizza name=\"").append(getName())
                .append("\" sauce=\"").append(getSauce())
                .append("\" toppings=\"").append(getTopping()).append("\"/>");
          

        return sb.toString();
    }
}
